<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="scripts/jquery/jquery-1.7.1.js"></script>
<link href="../style/authority/basic_layout.css" rel="stylesheet" type="text/css">
<link href="../style/authority/common_style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../scripts/authority/commonAll.js"></script>
<script type="text/javascript" src="../scripts/fancybox/jquery.fancybox-1.3.4.js"></script>
<script type="text/javascript" src="../scripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script language="javascript" type="text/javascript" src="../scripts/My97DatePicker/WdatePicker.js"></script>
<link rel="stylesheet" type="text/css" href="../style/authority/jquery.fancybox-1.3.4.css" media="screen"></link>
<script type="text/javascript" src="../scripts/artDialog/artDialog.js?skin=default"></script>
<script type="text/javascript" src="../scripts/Myscripts/alpha_add.js"></script>
<title>信息管理系统</title>
<style>
	.alt td{ background:black !important;}
</style>
</head>
<body>
<div id = "add_alpha_id">
	<form id="submitForm" name="submitForm" action="" method="post">
		<input type="hidden" name="allIDCheck" value="" id="allIDCheck"/>
		<input type="hidden" name="fangyuanEntity.fyXqName" value="" id="fyXqName"/>
		<div id="container">
			<div class="ui_content">
				<div class="ui_text_indent">
					<div id="box_border">
						<div id="box_top">搜索</div>
						<div id="box_center" >
						&nbsp;&nbsp;
							任务日期
							<input id="d4311" name="d4311" value="2010-01-01" class="Wdate" type="text" onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'d4312\')||\'2020-10-01\'}'})"/>
							至
							<input id="d4312" name="d4312" value="2020-01-01" class="Wdate" type="text" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'d4311\')}',maxDate:'2020-10-01'})"/>
							</div>
							<div id="box_center">
							&nbsp;&nbsp;
							任务类型
								<select id="mission_type" name="mission_type">
								<option value="送货" selected="selected">	送货</option>
								<option value="退货" >	退货</option>
								<option value="换货" >	换货</option>
								</select>
							&nbsp;&nbsp;
							任务状态
								<select id="mission_state" name="mission_state">
								<option value="可分配" selected="selected">	可分配</option>
								<option value="已分配" >	已分配</option>
								<option value="已领货" >	已领货</option>
								<option value="已完成" >	完成</option>
								<option value="失败" >	失败</option>
								</select>
							&nbsp;&nbsp;
							分站号
								<select id="substation_id" name="substation_id">
								<c:forEach items="${substations}" var="temp" >
									<option value="${temp}">${temp}</option>
								</c:forEach>
								</select>							
						</div>
						<div id="box_bottom">
							<input type="button" value="查询" class="ui_input_btn01"
							onclick="javascript:document.submitForm.action='Missionconsultservlet?operation=query';document.submitForm.submit()"/> 
						</div>
					</div>
				</div>
			</div>
			<div class="ui_content">
				<div class="ui_tb">
					<table class="table" cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
						<tr>
							<th>订单号</th>
							<th>任务单号</th>
							<th>客户姓名</th>
							<th>投递地址</th>
							<th>商品名称</th>
							<th>商品数量</th>
						</tr>
							<c:if test="${array!=null}">
								<c:forEach items="${array}" var="tp">
								<tr>
									<%-- <td><input type="checkbox" name="IDCheck" value="14458579642011" class="acb" /></td> --%>
										<td>${tp.order_id }</td>
										<td>${tp.mission_id }</td>
										<td>${tp.user_nick }</td>
										<td>${tp.address}</td>
										<td>${tp.product_name}</td>
										<td>${tp.prodcut_number}</td>
								</tr>
								</c:forEach>
							</c:if>
					<tr>
							<th>订单号</th>
							<th>日期</th>
							<th>任务状态</th>
							<th>任务类型</th>
							<th>分站号</th>
						</tr>
							<c:if test="${array!=null}">
								<c:forEach items="${array}" var="tp">
								<tr>
									<%-- <td><input type="checkbox" name="IDCheck" value="14458579642011" class="acb" /></td> --%>
										<td>${tp.order_id }</td>
										<td>${tp.deadline }</td>
										<td>${tp.mission_state }</td>
										<td>${tp.mission_type }</td>
										<td>${tp.substation_id}</td>
								</tr>
								</c:forEach>
							</c:if>
					</table>
				</div>
			</div>
		</div>
	</form>
</div>
<script type="text/javascript">
    var eitem = document.getElementById("add_alpha_id");
    window.onload = add_alpha(eitem);
    </script>
</body>
</html>
